package rise.net;

public class ServerConnection {
	private static String address = "10.0.2.2";
	private final static Integer inputServerPort = 5678;

	public static synchronized void setServerAddress(String address) {
		synchronized (ServerConnection.address) {
			ServerConnection.address = address;
		}
	}

	public static String getAddress() {
		synchronized (ServerConnection.address) {
			return address;
		}
	}

	public static int getServerPort() {
		synchronized (ServerConnection.inputServerPort) {
			return inputServerPort;
		}
	}
}
